#ifndef _INCLUDED_GREP_RPC_H_
#define _INCLUDED_GREP_RPC_H_

#include "rpc.h"
#include "grep.h"

template<typename Handler>
inline void grep_rpc_function(Handler handler, const serializable_sequence<std::string,2>& arg)
{
	std::string grep_result(grep(arg));
	send_rpc<s2c::grep_result_rpc_t>(handler,serializable_sequence<std::string,2>(grep_result));
}


#endif